package de.cbf.cam.dsa.model.persistence;

import java.util.UUID;


public abstract class Header {
	/**
	 * @uml.property  name="guid"
	 */
	protected String guid;
	
	public Header() {
		guid = UUID.randomUUID().toString();
		
	}
	/**
	 * @return  the guid
	 * @uml.property  name="guid"
	 */
	public abstract String getGuid() ;
	
	/**
	 * @param guid
	 * @uml.property  name="guid"
	 */
	protected abstract void setGuid(String guid);
	
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Header) {
			Header header = (Header) obj;
			if(guid.equals(header.guid)){
				return true;
			}
		}
		return false;
	}
	
	
}
